package com.tsxy.mall.mapper;

import com.tsxy.mall.entity.BookPicture;
import com.tsxy.mall.entity.BookPictureRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BookPictureMapper {

    @Select({"select localName from book_picture_relation where book_id = #{id}"})
    List<String> getByBookId(@Param("id") Integer id);
}
